package com.czytqg.subject.application.convert;

import com.czytqg.subject.application.dto.SubjectAnswerDTO;
import com.czytqg.subject.domain.entity.SubjectAnswerBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目答案DTO的转换
 * 
 * @Author:  CZY
 * @date:  2024/5/25 22:04
 */
@Mapper
public interface SubjectAnswerDTOConverter {

    SubjectAnswerDTOConverter INSTANCE = Mappers.getMapper(SubjectAnswerDTOConverter.class);

    SubjectAnswerBO convertDTOToAnswerBO(SubjectAnswerDTO subjectAnswerDTO);

    List<SubjectAnswerBO> convertListDTOToAnswerBO(List<SubjectAnswerDTO> dtoList);
}

